import request from '@/utils/request'

//查询底图图层节点
export function listMapSource(params) {
  return request({
    url: '/resource/mapSource/list',
    method: 'get',
    params: params
  })
}
//插入底图图层节点
export function insertMapSource(data){
  return request({
    url:'/resource/mapSource/insert',
    method:'post',
    data:data
  })
}
//更新底图图层节点
export function updateMapSource(data){
  return request({
    url:'/resource/mapSource/update',
    method:'put',
    data:data
  })
}
//删除底图图层节点
export function deleteMapSourceItem(id) {
  return request({
    url:'/resource/mapSource/delete/'+id,
    method:'delete'
  })
}

//底图图层节点排序
export function sortMapSource(data) {
  return request({
    url:'/resource/mapSource/sort',
    method:'put',
    data:data
  })
}
